<?php
//search field
?>
<?=$ajax->form('find', 'post', array('update'=>'return'));?>
	<select name="data[Member][field]">
		<option value="last_name">Last Name</option>
		<option value="first_name">First Name</option>
		<option value="email_address">Email</option>
	</select>
	<input type="text" name="data[Member][value]"/>
	<input type="submit"/>
</form>
<div id="return">
</div>
<?php
if ($field !== null && $value !== null) {
	echo $javascript->codeBlock("new Ajax.Updater('return','" . $html->url('/members/find') . "', {asynchronous:true, evalScripts:true, parameters:'data[Member][field]=$field&data[Member][value]=$value', requestHeaders:['X-Update', 'return']});");
}
?>